#include "pushbutton.h"

//按钮
PushButton::PushButton(int x,QWidget* parent) : QPushButton(parent)
{
    this->setMinimumSize(100,50);
    this->setMaximumSize(100,50);
    if(0 == x)
        setText("开始游戏");
    else
        setText("退出游戏");

    QFont font;
    font.setPointSize(14);
    this->setFont(font);
}

PushButton::~PushButton(){}
